package com.sf.marathon.soul.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sf.marathon.soul.core.base.BaseDao;
import com.sf.marathon.soul.domain.User;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 01368146
 * @since 2017-08-11
 */
public interface UserMapper extends BaseDao<User> {

    @Select("select * from user where user_code=#{userCode}")
    List<User> selectByUserCode(String userCode);

    @Select("select * from user where user_code=#{userCode} and password=#{userKey}")
    User selectByUserCodeAndPassword(@Param("userCode") String userCode, @Param("userKey") String userKey);
}